
import React, { Component } from 'react';

import { HashRouter, Route, BrowserRouter, Redirect } from 'react-router-dom';

import layout from '../pages/layout'

class Routes extends Component {
    render() {
        return (
            <BrowserRouter>
                <HashRouter>
                    <Route path='/' component={layout}></Route>
                    <Redirect from='*' to='/book'></Redirect>
                </HashRouter>
            </BrowserRouter>
        );
    }
}

export default Routes;